.class public Lcom/wmr/order/RefundActivity$viewClickListener;
.super Ljava/lang/Object;
.source "RefundActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/wmr/order/RefundActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "viewClickListener"
.end annotation


# instance fields
.field private position:I

.field final synthetic this$0:Lcom/wmr/order/RefundActivity;


# direct methods
.method public constructor <init>(Lcom/wmr/order/RefundActivity;I)V
    .locals 0
    .param p2, "id"    # I

    .prologue
    .line 192
    iput-object p1, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->this$0:Lcom/wmr/order/RefundActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 193
    iput p2, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->position:I

    .line 195
    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 11
    .param p1, "v"    # Landroid/view/View;

    .prologue
    const/16 v10, 0x8

    const/4 v9, 0x0

    .line 199
    const-string v5, "click\u65f6\u95f4"

    new-instance v6, Ljava/lang/StringBuilder;

    iget v7, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->position:I

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v7, "\u4f4d\u7f6e"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v5, v6}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 200
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v5, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->reasonview:[Landroid/view/View;
    invoke-static {v5}, Lcom/wmr/order/RefundActivity;->access$1(Lcom/wmr/order/RefundActivity;)[Landroid/view/View;

    move-result-object v5

    array-length v5, v5

    if-lt v0, v5, :cond_0

    .line 215
    return-void

    .line 201
    :cond_0
    iget-object v5, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->this$0:Lcom/wmr/order/RefundActivity;

    # getter for: Lcom/wmr/order/RefundActivity;->reasonview:[Landroid/view/View;
    invoke-static {v5}, Lcom/wmr/order/RefundActivity;->access$1(Lcom/wmr/order/RefundActivity;)[Landroid/view/View;

    move-result-object v5

    aget-object v2, v5, v0

    .line 202
    .local v2, "tempc":Landroid/view/View;
    const v5, 0x7f0701c3

    invoke-virtual {v2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 203
    .local v4, "unselet_img":Landroid/widget/ImageView;
    const v5, 0x7f0701c4

    invoke-virtual {v2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 204
    .local v1, "seleted_img":Landroid/widget/ImageView;
    iget v5, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->position:I

    if-ne v0, v5, :cond_1

    .line 205
    invoke-virtual {v4, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 206
    invoke-virtual {v1, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 207
    const v5, 0x7f0701c5

    invoke-virtual {v2, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 208
    .local v3, "textname":Landroid/widget/TextView;
    iget-object v5, p0, Lcom/wmr/order/RefundActivity$viewClickListener;->this$0:Lcom/wmr/order/RefundActivity;

    invoke-virtual {v3}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;

    move-result-object v6

    invoke-interface {v6}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v6

    .line 209
    const-string v7, "%"

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v7, " "

    const-string v8, ""

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    .line 208
    invoke-static {v5, v6}, Lcom/wmr/order/RefundActivity;->access$2(Lcom/wmr/order/RefundActivity;Ljava/lang/String;)V

    .line 200
    .end local v3    # "textname":Landroid/widget/TextView;
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 211
    :cond_1
    invoke-virtual {v4, v9}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 212
    invoke-virtual {v1, v10}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_1
.end method
